
@mainColor: #546e95;
@panel-border: 1px solid rgba(204, 204, 204, 1);
@panel-border-radius: 3px;
@panel-background: #fff;

.panel-style {
  border: @panel-border;
  border-radius: @panel-border-radius;
  background: @panel-background;
}

:host {
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}


.shortage-main {
  display: grid;
  width: 99.5vw;
  height: calc(100vh - 20px);
  padding: 47px 10px 0 22px;
  box-sizing: border-box;
  grid-template-rows: 60px auto;
  grid-template-columns: 260px auto 260px;
  grid-gap: 14px;

  .st-top-left {
    grid-area: 1 / 1 / 2 / 2;
  }
  .st-top-middle {
    grid-area: 1 / 2 / 2 / 3;
  }
  .st-top-right {
    grid-area: 1 / 3 / 2 / 4;
  }

  .lm {
    grid-area: 2 / 1 / 3 / 3;
    display: flex;
    .st-left, .st-middle {
      .panel-style();
    }
    .st-left {
      display: flex;
      position: relative;
      width: 260px;
      margin-right: 14px;
      .qc {
        width: 100%;
        height: 100%;
      }
      .collapse-ctrl {
        position: absolute;
        right: -16px;
        width: 16px;
        height: 100%;
        display: flex;
        align-items: center;
        &:hover > .collapse-btn {
          opacity: 1;
        }
        .collapse-btn {
          width: 16px;
          height: 60px;
          cursor: pointer;
          background: @mainColor;
          border-top-right-radius: 3px;
          border-bottom-right-radius: 3px;
          border: none;
          opacity: 0;
          transition: opacity .6s;
        }
      }
    }
    .st-middle {
      flex: 1;
      .item-table {
        width: 100%;
        height: 100%;
      }
    }
  }
  .st-right {
    grid-area: 2 / 3 / 2 / 3;
    .panel-style();
    .where-use-panel {
      width: 100%;
      height: 100%;
    }
  }
}
